#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

void swap(int* a, int* b)
{
	int tmp = *a;
	*a = *b;
	*b = tmp;
}

void BubbleSort(int* a, int n)
{
	for (int j = 0; j < n - 1; j++)
	{
		for (int i = 0; i < n - 1 - j; i++)
		{
			if (a[i]>a[i + 1])
			{
				swap(&a[i], &a[i + 1]);
			}
		}
	}
}


int main()
{
	int arr[] = { 3, 4, 5, 6, 1, 4, 5, 7, 9, 10 };
	int arr2[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 };
	BubbleSort(arr2, sizeof(arr2) / sizeof(arr2[0]));

	for (int i = 0; i < sizeof(arr2) / sizeof(arr2[0]); i++)
	{
		printf("%d ", arr2[i]);
	}
	printf("\n");
	return 0;
}